package com.codeplay.service;

import com.codeplay.entity.Course;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CourseService {
    Course createCourse(Course course);
    Course getCourseById(Long id);
    Page<Course> getAllCourses(Pageable pageable);
    Page<Course> getCoursesByDifficultyLevel(Course.DifficultyLevel difficultyLevel, Pageable pageable);
    Page<Course> getCoursesByAgeRange(String ageRange, Pageable pageable);
    List<Course> getCoursesByCreator(Long creatorId);
    Page<Course> searchCourses(String keyword, Pageable pageable);
    Course updateCourse(Course course);
    void deleteCourse(Long id);
} 